package com.ocean.admin.model.dto.config;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 系统配置保存DTO
 *
 * @author zhang
 * @since 2022-8-20
 */
@Data
public class SysConfigSaveDTO {

    /**
     * 参数名称
     */
    @NotBlank(message = "请输入参数名称")
    @Schema(description = "参数名称", required = true)
    private String configName;

    /**
     * 参数键名
     */
    @NotBlank(message = "请输入参数键名")
    @Schema(description = "参数键名", required = true)
    private String configKey;

    /**
     * 参数键值
     */
    @NotBlank(message = "请输入参数键值")
    @Schema(description = "参数键值", required = true)
    private String configValue;

    /**
     * 系统内置（1是 0否）
     */
    @Schema(description = "系统内置（1是 0否）")
    private Integer configType;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
}
